package com.zz.cc.owner.app;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

import com.zz.cc.owner.R;
import com.zz.cc.owner.TitleBaseActivity;

public class AddCommentActivity extends TitleBaseActivity implements OnClickListener {
	
	private EditText mCommentInput;
	private Button mSubmit;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_add_comment);
		initUI();
		fillView();
	}
	
	private void initUI() {
		mCommentInput = (EditText) findViewById(R.id.add_comment_input);
		mSubmit = (Button) findViewById(R.id.add_comment_submit);
	}
	
	private void fillView() {
		setCurrentTitle(R.string.add_comment_title);
		mSubmit.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View view) {
		int id = view.getId();
		if(id == R.id.add_comment_submit) {
			//TODO submit a comment
			onBackPressed();
		}
		
	}

}
